package com.idol.logger.core.json

import com.idol.logger.core.json.iface.IdolToJson

internal class IdolToJsonString : IdolToJson {

    override fun toJson(vararg data: Any) =
        data.fold(StringBuilder()) { builder: StringBuilder, ele: Any -> builder.append(ele).append("\n") }.toString()

}